<template>
  <div>
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="fuwenben">

      <!-- 富文本编辑器 -->
      <el-form-item prop="articleBody" >
        <!-- 失去焦点时手动校验该字段 (当前 articleBody 属性值) -->
        <quill-editor
            @blur="$refs.ruleForm.validateField('articleBody')"
            v-model="ruleForm.articleBody"/>
      </el-form-item>

    </el-form>

  </div>
</template>

<script>
export default {
  name: "PowerView",
  data(){
    return{
      ruleForm: {
        //...省略其他
        articleBody: '',
      },
      rules: {
        //..省略其他
        articleBody: [
          { required: true, message: '请输入文本', trigger: 'change' }
        ],
      }

    }
  },

}
</script>



<style scoped lang="scss">
// 一定要给高度 否则无法加载
::v-deep .ql-editor {

  // 样式穿透
  min-height: 180px !important;
}
.fuwenben{
 margin-left: -120px;
}

</style>
